<div class="post" id="post-new">
<script type="text/javascript" src="<?=base_url();?>static/js/xheditor-1.1.6-zh-cn.min.js"></script>

<?=form_open('new/post', $attributes);?>
<p><label>标题</label></p><input type="text" name="post_title" />
<p><label>作者</label></p><input type="text" name="post_author" />
<p><label>标签</label></p>
<select name="post_tag">
<?php foreach($list_tag as $row) : ?>
<option value="<?=$row->term_id?>"><?=$row->term_name?></option>
<?php endforeach;?>
</select>
<p><label>分类</label></p>
<select name="post_category">
<?php foreach($list_category as $row) : ?>
<option value="<?=$row->term_id?>"><?=$row->term_name?></option>
<?php endforeach;?>
</select>
<p><label>内容</label></p>
<textarea name="post_content" class="xheditor {skin:'default'}" rows="20" cols="100"></textarea>
<p><input type="submit" name="submit" value="提交post" /></p>
</form>
</div>